package com.service.information.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.mapper.information.CommentMapper;
import com.po.CommentInfo;
import com.service.information.CommentService;
@Service
public class CommentServiceImp implements CommentService{
	@Resource(name = "commentMapper")
	private CommentMapper commentMapper;
	
	@Override
	public List<CommentInfo> getCommentList(CommentInfo commentInfo) {
		List<CommentInfo> list=commentMapper.getCommentList(commentInfo);
		return list;
	}

	@Override
	public int getCommentCount(CommentInfo commentInfo) {
		int i=commentMapper.getCommentCount(commentInfo);
		return i;
	}

	@Override
	public int addComment(CommentInfo commentInfo) {
		int i=commentMapper.addComment(commentInfo);
		return i;
	}

	@Override
	public int deleteComment(String id) {
		int i=commentMapper.deleteComment(id);
		return i;
	}

}
